<div class="col-lg-12">
    @include('admin.contents.bar')
    <section class="panel">
        {{ Form::open(array('route' => 'admin.contents.categories.store','class'=>'form-horizontal', 'data-validate'=>"parsley")) }}
        <header class="panel-heading">
            <div class="pull-left"><i class="fa fa-edit fa-lg"></i> Add Category</div>
        </header>
        <div class="panel-body">
            @if ($errors->any())
                <ul class="alert alert-danger">
                    {{ implode('', $errors->all('<p>:message</p>')) }}
                </ul>
            @endif
            <div class="form-group">
                <label class="col-lg-3 control-label">Name</label>
                <div class="col-lg-8">
                    <input type="text" class="bg-focus form-control parsley-validated" data-required="true" placeholder="Name" name="name" value="{{ Input::old('name') }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-3 control-label">Active</label>
                <div class="col-lg-8">
                    <div class="checkbox">
                        <input type="checkbox" name="active" value="Y" @if(Input::old('active')=='Y') checked="checked" @endif>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-lg-9 col-lg-offset-3">
                    <button class="btn btn-white btn-primary" type="submit">Save Category</button>
                    <a class="btn" href="{{ URL::to('admin/contents/categories') }}">Cancel</a>
                </div>
            </div>
        </div>
        {{ Form::close() }}
    </section>
</div>
